// Learn cc.Class:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        DismissRelease: true,
        OutSizeEnable: false,
        KeyBackEnable: false,
        BackGroupGray: true
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad() {
        if (typeof (this.DismissRelease) == 'string') {
            this.DismissRelease = eval(this.DismissRelease.toLowerCase());
        } else {
            this.DismissRelease = true;
        }

        if (typeof (this.OutSizeEnable) == 'string') {
            this.OutSizeEnable = eval(this.OutSizeEnable.toLowerCase());
        } else {
            this.OutSizeEnable = false;
        }

        if (typeof (this.KeyBackEnable) == 'string') {
            this.KeyBackEnable = eval(this.KeyBackEnable.toLowerCase());
        } else {
            this.KeyBackEnable = false;
        }

        if (typeof (this.BackGroupGray) == 'string') {
            this.BackGroupGray = eval(this.BackGroupGray.toLowerCase());
        } else {
            this.BackGroupGray = true;
        }

    },

    getIsBackGroupGray() {
        return this.BackGroupGray;
    },

    getIsOutSizeEnable() {
        return this.OutSizeEnable;
    },

    getIsDissRelease() {
        return this.DismissRelease;
    },

    start() {

    },

    // update (dt) {},
});